//logs.js
var app = getApp()
const util = require('../../utils/util.js')

Page({
  data: {
    userInfo: {},

  },
  onLoad: function () {
    

  },

  onShow: function () {
    if (!app.globalData.hasUserInfo) {
      wx.showModal({
        title: '账户未授权',
        content: '您将无法查看订单信息，强烈建议您删除小程序重新授权',
        showCancel: false,
        confirmColor: '#1bada6',
        confirmText: '确定',
        success: function (res) {
          if (res.confirm) {
             
          }
        }
      })
    } else {
      this.setData({
        userInfo: app.globalData.userInfo,
      })
    }
  }


})
